function formatteHours(date) {
    let hours = date.getHours();
    let minutes = date.getMinutes();
    let time = `${hours < 10 ? '0' + hours : hours}:${minutes < 10 ? '0' + minutes : minutes}`
    return time;
}

export default formatteHours